package com.lianrui.app.member.dao;

import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import com.lianrui.app.member.domain.Member;
import com.lianrui.app.member.vos.MemberPage;
import com.lianrui.commons.exception.BusinessException;
import com.lianrui.core.IDao;

@Repository("memberDao")
public interface IMemberDao extends IDao<MemberPage, Member, Integer> {
	
	@ResultMap("memberMap")
	@Select("select * from es_member where member_id = #{id}")
	public Member unique(Integer id) throws BusinessException;
	
}
